home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 1 / Meeting Pearls Vol 1 (1994).iso / installed_progs / text / faqs / lisp-faq.part1 < prev    next >
Encoding:
Internet Message Format  |  1994-05-15  |  70.0 KB

  1. Subject: FAQ: Lisp Frequently Asked Questions 1/7 [Monthly posting]
  2. Newsgroups: comp.lang.lisp,news.answers,comp.answers
  3. From: mkant+@cs.cmu.edu (Mark Kantrowitz)
  4. Date: Fri, 13 May 1994 14:51:16 GMT
  5.  
  6. Archive-name: lisp-faq/part1
  7. Last-Modified: Thu May 12 21:32:40 1994 by Mark Kantrowitz
  8. Version: 1.45
  9.  
  10. ;;; ****************************************************************
  11. ;;; Answers to Frequently Asked Questions about Lisp ***************
  12. ;;; ****************************************************************
  13. ;;; Written by Mark Kantrowitz and Barry Margolin
  14. ;;; lisp_1.faq -- 71807 bytes
  15.  
  16. This post contains Part 1 of the Lisp FAQ.
  17.  
  18. If you think of questions that are appropriate for this FAQ, or would
  19. like to improve an answer, please send email to us at lisp-faq@think.com.
  20.  
  21. Note that the lisp-faq mailing list is for discussion of the content
  22. of the FAQ posting only.  It is not the place to ask questions about Lisp;
  23. use either the common-lisp@ai.sri.com mailing list or the
  24. comp.lang.lisp newsgroup for that.  If a question appears frequently
  25. in one of those forums, it will get added to the FAQ list.
  26.  
  27. *** Copyright:
  28.  
  29. Copyright (c) 1992-94 by Mark Kantrowitz and Barry Margolin. 
  30. All rights reserved. 
  31.  
  32. This FAQ may be freely redistributed in its entirety without
  33. modification provided that this copyright notice is not removed.  It
  34. may not be sold for profit or incorporated in commercial documents
  35. (e.g., published for sale on CD-ROM, floppy disks, books, magazines,
  36. or other print form) without the prior written permission of the
  37. copyright holder.  Permission is expressly granted for this document
  38. to be made available for file transfer from installations offering
  39. unrestricted anonymous file transfer on the Internet.
  40.  
  41. This article is provided AS IS without any express or implied warranty.
  42.  
  43. *** Topics Covered:
  44.  
  45. There are currently seven parts to the Lisp FAQ:
  46.  
  47.    1. Introductory Matter and Bibliography of Introductions and References
  48.    2. General Questions
  49.    3. Common Programming Pitfalls
  50.    4. Lisp Implementations and Mailing Lists
  51.    5. Object-oriented Programming in Lisp
  52.    6. FTP Archives and Resources
  53.    7. Lisp Window Systems and GUIs
  54.  
  55. All parts are posted to comp.lang.lisp. Part 5 is cross-posted to the
  56. comp.lang.clos newsgroup.  
  57.  
  58. Topics Covered (Part 1):
  59.  
  60.   [1-0]   What is the purpose of this newsgroup?
  61.   [1-1]   What is the difference between Scheme and Common Lisp?
  62.   [1-2]   Lisp books, introductions, documentation, periodicals,
  63.           journals, and conference proceedings. 
  64.   [1-3]   How can I improve my Lisp programming style and coding efficiency?
  65.   [1-4]   Where can I learn about implementing Lisp interpreters and compilers?
  66.   [1-5]   What is the "minimal" set of primitives needed for a Lisp
  67.           interpreter? 
  68.   [1-6]   What does CLOS, PCL, X3J13, CAR, CDR, ... mean? 
  69.   [1-7]   Lisp Job Postings
  70.  
  71. Topics Covered (Part 2):
  72.  
  73.   [2-1]   Is there a GNU-Emacs interface to Lisp?
  74.   [2-2]   When should I use a hash table instead of an association list?
  75.   [2-3]   What is the equivalent of EXPLODE and IMPLODE in Common Lisp?
  76.   [2-4]   Is Lisp inherently slower than more conventional languages such as C?
  77.   [2-5]   Why does Common Lisp have "#'"?
  78.   [2-6]   How do I call non-Lisp functions from Lisp?
  79.   [2-7]   Can I call Lisp functions from other languages?
  80.   [2-8]   I want to call a function in a package that might not exist at
  81.           compile time. How do I do this?  
  82.   [2-9]   What is CDR-coding?
  83.   [2-10]  What is garbage collection?
  84.   [2-11]  How do I save an executable image of my loaded Lisp system?
  85.           How do I run a Unix command in my Lisp?
  86.   [2-12]  I'm porting some code from a Symbolics Lisp machine to some
  87.           other platform, and there are strange characters in the code.
  88.           What do they mean?  
  89.   [2-13]  History: Where did Lisp come from?
  90.   [2-14]  How do I find the argument list of a function?
  91.           How do I get the function name from a function object?
  92.   [2-15]  How can I have two Lisp processes communicate via unix sockets?
  93.   [2-16]  How can I create a stream that acts like UNIX's /dev/null
  94.           (i.e., gobbles any output and immediately signals EOF on
  95.           input operations)?
  96.   [2-17]  Read-time conditionalization of code (#+ #- and *features*)
  97.   [2-18]  What reader macro characters are used in major Lisp systems?
  98.   [2-19]  How do I determine if a file is a directory or not? 
  99.           How do I get the current directory name from within a Lisp 
  100.           program? Is there any way to create a directory?
  101.   [2-20]  What is a "Lisp Machine" (LISPM)?
  102.  
  103. Common Pitfalls (Part 3):
  104.  
  105.   [3-0]  Why does (READ-FROM-STRING "foobar" :START 3) return FOOBAR
  106.          instead of BAR?  
  107.   [3-1]  Why can't it deduce from (READ-FROM-STRING "foobar" :START 3)
  108.          that the intent is to specify the START keyword parameter
  109.          rather than the EOF-ERROR-P and EOF-VALUE optional parameters?   
  110.   [3-2]  Why can't I apply #'AND and #'OR?
  111.   [3-3]  I used a destructive function (e.g. DELETE, SORT), but it
  112.          didn't seem to work.  Why? 
  113.   [3-4]  After I NREVERSE a list, it's only one element long.  After I
  114.          SORT a list, it's missing things.  What happened? 
  115.   [3-5]  Why does (READ-LINE) return "" immediately instead of waiting
  116.          for me to type a line?  
  117.   [3-6]  I typed a form to the read-eval-print loop, but nothing happened. Why?
  118.   [3-7]  DEFMACRO doesn't seem to work.
  119.          When I compile my file, LISP warns me that my macros are undefined
  120.          functions, or complains "Attempt to call <function> which is 
  121.          defined as a macro.
  122.   [3-8]  Name conflict errors are driving me crazy! (EXPORT, packages)
  123.   [3-9]  Closures don't seem to work properly when referring to the
  124.          iteration variable in DOLIST, DOTIMES, DO and LOOP.
  125.   [3-10] What is the difference between FUNCALL and APPLY?
  126.   [3-11] Miscellaneous things to consider when debugging code.
  127.   [3-12] When is it right to use EVAL?
  128.   [3-13] Why does my program's behavior change each time I use it?
  129.   [3-14] When producing formatted output in Lisp, where should you put the
  130.          newlines (e.g., before or after the line, FRESH-LINE vs TERPRI,
  131.          ~& vs ~% in FORMAT)?
  132.   [3-15] I'm using DO to do some iteration, but it doesn't terminate. 
  133.   [3-16] My program works when interpreted but not when compiled!
  134.  
  135. Lisp Implementations and Mailing Lists (Part 4):
  136.  
  137.   [4-0]   Free Common Lisp implementations.
  138.   [4-1]   Commercial Common Lisp implementations.
  139.   [4-1a]  Lisp-to-C translators
  140.   [4-2]   Scheme Implementations
  141.   [4-4]   Free Implementations of Other Lisp Dialects
  142.   [4-5]   Commercial Implementations of Other Lisp Dialects
  143.   [4-6]   What is Dylan?
  144.   [4-7]   What is Pearl Common Lisp?
  145.   [4-9]   What Lisp-related discussion groups and mailing lists exist?
  146.   [4-10]  ANSI Common Lisp -- Where can I get a copy of the draft standard?
  147.  
  148. Object-oriented Programming in Lisp (Part 5):
  149.  
  150.   [5-0]   What is CLOS (PCL) and where can I get it?
  151.           How do you pronounce CLOS?
  152.   [5-1]   What documentation is available about object-oriented
  153.           programming in Lisp?  
  154.   [5-2]   How do I write a function that can access defstruct slots by
  155.           name?  I would like to write something like 
  156.           (STRUCTURE-SLOT <object> '<slot-name>).   
  157.   [5-3]   How can I list all the CLOS instances in a class?
  158.   [5-4]   How can I store data and CLOS instances (with possibly circular
  159.           references) on disk so that they may be retrieved at some later
  160.           time?
  161.   [5-5]   Given the name of a class, how can I get the names of its slots?
  162.   [5-6]   Free CLOS software.
  163.  
  164. FTP Resources (Part 6):
  165.  
  166.   [6-0] General information about FTP Resources for Lisp
  167.   [6-1] Repositories of Lisp Software
  168.   [6-3] Publicly Redistributable Lisp Software
  169.   [6-6] Formatting code in LaTeX (WEB and other literate programming tools)
  170.   [6-7] Where can I get an implementation of Prolog in Lisp?
  171.   [6-8] World-Wide Web (WWW) Resources
  172.  
  173. Lisp Window Systems and GUIs (Part 7):
  174.   [7-1] How can I use the X Window System or other GUIs from Lisp?
  175.   [7-2] What Graphers/Browsers are available?
  176.  
  177. Search for \[#\] to get to question number # quickly.
  178.  
  179. *** Recent Changes:
  180.  
  181. ;;; 1.44:
  182. ;;; 14-MAR-94 mk    CMU CL version 17e released.
  183. ;;; 23-MAR-94 mk    Updated SchemeWeb entry.
  184. ;;; 12-APR-94 mk    This FAQ is now available by WWW. See below for details.
  185. ;;; 12-APR-94 mk    Changed/updated many ftp references to enable them to
  186. ;;;                 appear as links in the WWW version of the FAQ. E-mail
  187. ;;;                 about references that weren't converted and/or other WWW
  188. ;;;                 resources is welcome.
  189. ;;;
  190. ;;; 1.45:
  191. ;;; 14-APR-94 mk    Deleted duplicate Graham/Grahm entry in [1-2].
  192. ;;; 22-APR-94 mk    Updated ftp information for ftp.gmd.de.
  193. ;;; 29-APR-94 mk    lisp-emacs-forum-request@ucbarpa.berkeley.edu now defunct.
  194. ;;;  5-MAY-94 mk    Added ALU home page to [6-4].
  195. ;;;  5-MAY-94 mk    Added entry on the Pratt/Doerpmund implementation of the
  196. ;;;                 Paris/Vencovska model of belief (defeasible reasoning) to
  197. ;;;                 the list of ftpable systems.
  198. ;;; 12-MAY-94 mk    Added info on Edebug to [2-1].
  199. ;;; 12-MAY-94 mk    Added entry on Jeff Dalton's port of Franz Lisp to 386/486
  200. ;;;                 systems running NetBSD to [4-4].
  201. ;;; 12-MAY-94 mk    Added Gwydion WWW page and email address to the entry in
  202. ;;;                 [4-6].
  203.  
  204. *** Introduction:
  205.  
  206. Certain questions and topics come up frequently in the various network
  207. discussion groups devoted to and related to Lisp.  This file/article is
  208. an attempt to gather these questions and their answers into a convenient
  209. reference for Lisp programmers.  It (or a reference to it) is posted
  210. periodically.  The hope is that this will cut down on the user time and
  211. network bandwidth used to post, read and respond to the same questions
  212. over and over, as well as providing education by answering questions
  213. some readers may not even have thought to ask.
  214.  
  215. This is not a Lisp tutorial, nor is it an exhaustive list of all Lisp
  216. intricacies.  Lisp is a very powerful and expressive language, but with
  217. that power comes many complexities.  This list attempts to address the
  218. ones that average Lisp programmers are likely to encounter.  If you are
  219. new to Lisp, see the answer to the question "How can I learn Lisp?".
  220.  
  221. The latest version of this FAQ is available via anonymous FTP from CMU
  222. and Thinking Machines: 
  223.  
  224.    To obtain the files from CMU, connect by anonymous FTP to 
  225.       ftp.cs.cmu.edu:/user/ai/pubs/faqs/lisp/  [128.2.206.173]
  226.    using username "anonymous" and password "name@host" (substitute your
  227.    email address) or via AFS in the Andrew File System directory
  228.       /afs/cs.cmu.edu/project/ai-repository/ai/pubs/faqs/lisp/
  229.    and get the files lisp_1.faq, lisp_2.faq, lisp_3.faq, lisp_4.faq,
  230.    lisp_5.faq, lisp_6.faq and lisp_7.faq.
  231.  
  232.    To obtain the files from Thinking Machines, connect by anonymous FTP to
  233.       ftp.think.com:/public/think/lisp/
  234.    The file faq.text contains all the parts of the FAQ in one file. In
  235.    addition, specific versions of the FAQ are available as faq-<version>.text.
  236.  
  237. You can also obtain a copy of the FAQ by sending a message to
  238. ai+query@cs.cmu.edu with 
  239.    Send Lisp FAQ
  240. in the message body.
  241.  
  242. The FAQ postings are also archived in the periodic posting archive on
  243.    rtfm.mit.edu:/pub/usenet/news.answers/lisp-faq/ [18.70.0.209]
  244. If you do not have anonymous ftp access, you can access the archive by
  245. mail server as well.  Send an E-mail message to
  246. mail-server@rtfm.mit.edu with "help" and "index" in the body on
  247. separate lines for more information.
  248.  
  249. An automatically generated HTML version of the Lisp FAQ is accessible by
  250. WWW as part of the AI-related FAQs Mosaic page. The URL for this
  251. resource is
  252.    http://www.cs.cmu.edu:8001/Web/Groups/AI/html/faqs/top.html
  253. The direct URL for the Lisp FAQ is
  254.    http://www.cs.cmu.edu:8001/Web/Groups/AI/html/faqs/lang/lisp/top.html
  255.  
  256. Unless otherwise specified, the Lisp dialect referred to is Common Lisp,
  257. as defined by "Common Lisp: the Language" (aka "CLtL1") as well as
  258. corrections (but not enhancements) from "Common Lisp: the Language, 2nd
  259. Edition" (aka "CLtL2"), both by Guy L. Steele, Jr. and published by
  260. Digital Press. Note that CLtL2 is NOT an official specification for
  261. the language; ANSI Committee X3J13 is preparing such a specification.
  262. See question [4-10] for information on the status of the ANSI
  263. specification for Common Lisp. Enhancements such as CLOS, conditions,
  264. and the LOOP macro will be referred to separately.
  265.  
  266. If you need to cite the FAQ for some reason, use the following format:
  267.    Mark Kantrowitz and Barry Margolin, "Answers to Frequently Asked
  268.    Questions about Lisp", comp.lang.lisp, <month>, <year>,
  269.    ftp.cs.cmu.edu:/user/ai/pubs/faqs/lisp/lisp_?.faq, lisp-faq@think.com.
  270.  
  271. ----------------------------------------------------------------
  272. Subject: [1-0] What is the purpose of this newsgroup?
  273.  
  274. The newsgroup comp.lang.lisp exists for general discussion of
  275. topics related to the programming language Lisp. For example, possible
  276. topics can include (but are not necessarily limited to):
  277.    announcements of Lisp books and products
  278.    discussion of programs and utilities written in Lisp
  279.    discussion of portability issues
  280.    questions about possible bugs in Lisp implementations
  281.    problems porting an implementation to some architecture
  282. Postings should be of general interest to the Lisp community. See also
  283. question [4-9]. Postings asking for solutions to homework problems are
  284. inappropriate. 
  285.  
  286. Every so often, somebody posts an inflammatory message, such as
  287.    My programming language is better than yours (Lisp vs. C/Prolog/Scheme). 
  288.    Loop (or Series) should/shouldn't be part of the language.
  289. These "religious" issues serve no real purpose other than to waste
  290. bandwidth. If you feel the urge to respond to such a post, please do
  291. so through a private e-mail message. 
  292.  
  293. Questions about object oriented programming in Lisp should be directed
  294. to the newsgroup comp.lang.clos. Similarly, questions about the
  295. programming language Scheme should be directed to the newsgroup
  296. comp.lang.scheme. Discussion of functional programming language issues
  297. should be directed to the newsgroup comp.lang.functional. Discussion
  298. of AI programs implemented in Lisp should sometimes be cross-posted to
  299. the newsgroup comp.ai.
  300.  
  301. ----------------------------------------------------------------
  302. Subject: [1-1] What is the difference between Scheme and Common Lisp?
  303.  
  304. Scheme is a dialect of Lisp that stresses conceptual elegance and
  305. simplicity. It is specified in R4RS and IEEE standard P1178. (See
  306. the Scheme FAQ for details on standards for Scheme.) Scheme is much
  307. smaller than Common Lisp; the specification is about 50 pages,
  308. compared to Common Lisp's 1300 page draft standard. (See question
  309. [4-10] for details on standards for Common Lisp.) Advocates of Scheme
  310. often find it amusing that the Scheme standard is shorter than the
  311. index to CLtL2. 
  312.  
  313. Scheme is often used in computer science curricula and programming
  314. language research, due to its ability to represent many programming
  315. abstractions with its simple primitives. Common Lisp is often used for
  316. real world programming because of its large library of utility
  317. functions, a standard object-oriented programming facility (CLOS), and
  318. a sophisticated condition handling system.
  319.  
  320. See the Scheme FAQ for information about object-oriented programming
  321. in Scheme. 
  322.  
  323. In Common Lisp, a simple program would look something like the
  324. following:
  325.  
  326.    (defun fact (n)
  327.      (if (< n 2)
  328.          1
  329.          (* n (fact (1- n)))))
  330.  
  331. In Scheme, the equivalent program would like like this:
  332.  
  333.    (define fact
  334.      (lambda (n)
  335.        (if (< n 2)
  336.            1
  337.          (* n (fact (- n 1))))))
  338.  
  339. Experienced Lisp programmers might write this program as follows in order
  340. to allow it to run in constant space:
  341.  
  342.    (defun fact (n)
  343.      (labels ((tail-recursive-fact (counter accumulator)
  344.                 (if (> counter n)
  345.                     accumulator
  346.                     (tail-recursive-fact (1+ counter)
  347.                                          (* counter accumulator)))))
  348.        (tail-recursive-fact 1 1)))
  349.  
  350. Whereas in Scheme the same computation could be written as follows:
  351.  
  352.    (define fact
  353.      (lambda (n)
  354.        (letrec ((tail-recursive-fact
  355.                  (lambda (counter accumulator)
  356.                    (if (> counter n)
  357.                        accumulator
  358.                      (tail-recursive-fact (+ counter 1)
  359.                                           (* counter accumulator))))))
  360.                (tail-recursive-fact 1 1))))
  361.  
  362. or perhaps (using IEEE named LETs):
  363.  
  364.    (define fact
  365.      (lambda (n)
  366.        (let loop ((counter n)
  367.                   (accumulator 1))
  368.             (if (< counter 2)
  369.                 accumulator
  370.               (loop (- counter 1)
  371.                     (* accumulator counter))))))
  372.  
  373. Some Schemes allow one to use the syntax (define (fact n) ...) instead
  374. of (define fact (lambda (n) ...)).
  375.  
  376. ----------------------------------------------------------------
  377. Subject: [1-2] Lisp books, introductions, documentation, periodicals,
  378.                journals, and conference proceedings. 
  379.  
  380. There are several good Lisp introductions and tutorials:
  381.  
  382.    1. David S. Touretzky
  383.       "Common Lisp: A Gentle Introduction to Symbolic Computation"
  384.       Benjamin/Cummings Publishers, Redwood City, CA, 1990. 592 pages.
  385.       ISBN 0-8053-0492-4. 
  386.            Perhaps the best tutorial introduction to the language. It has
  387.            clear and correct explanations, and covers some fairly advanced
  388.            topics. The book is an updated Common Lisp version of the 1984
  389.            edition published by Harper and Row Publishers. 
  390.  
  391.            Three free Lisp educational tools which were used in the book --
  392.            Evaltrace, DTRACE and SDRAW -- are available by anonymous ftp from
  393.            b.gp.cs.cmu.edu:/usr/dst/public/{lisp,evaltrace}. Evaltrace is a
  394.            graphical notation for explaining how evaluation works and is
  395.            described in "Visualizing Evaluation in Applicative Languages" by
  396.            David S. Touretzky and Peter Lee, CACM 45-59, October 1992. DTRACE
  397.            is a "detailed trace" which provides more information than the 
  398.            tracing tools provided with most Common Lisp implementations. SDRAW
  399.            is a read-eval-draw loop that evaluates Lisp expressions
  400.            and draws the result as a cons cell diagram (for both X11 and ascii
  401.            terminals). Also available is PPMX, a tool for pretty printing
  402.            macro expansions.
  403.  
  404.    2. Robert Wilensky
  405.       "Common LISPcraft"
  406.       W. W. Norton, 1986. 500 pages. ISBN 0-393-95544-3.
  407.  
  408.    3. Wade L. Hennessey 
  409.       "Common Lisp"
  410.       McGraw-Hill, 1989. 395 pages.
  411.            Fairly good, but jumps back and forth from the simple to the
  412.            complex rather quickly, with no clear progression in difficulty.
  413.  
  414.    4. Laurent Siklossy
  415.       "Let's Talk LISP"
  416.       Prentice-Hall, NJ, 1976. 237 pages.
  417.            Good introduction, but quite out of date.
  418.  
  419.    5. Stuart C. Shapiro
  420.       "Common Lisp: An Interactive Approach"
  421.       Computer Science Press/W.H. Freeman, New York, 1992.
  422.       ISBN 0-7167-8218-9
  423.          The errata for the book may be obtained by anonymous ftp from
  424.          ftp.cs.buffalo.edu:/users/shapiro/clerrata.ps
  425.  
  426. Other introductions to Lisp include:
  427.  
  428.    1. A. A. Berk.
  429.       "LISP, The Language of Artificial Intelligence"
  430.       Van Nostrand Reinhold, 1985. 160 pages.
  431.  
  432.    2. Paul Y. Gloess.
  433.       "An Alfred handy guide to Understanding LISP"
  434.       Alfred Publishers (Sherman Oaks, CA), 1982. 64 pages.
  435.  
  436.    3. Ward D. Maurer.
  437.       "The Programmer's Introduction to LISP"
  438.       American Elsevier, 1972. 112 pages.
  439.  
  440.    4. Hank Bromley and Richard Lamson.
  441.       "LISP Lore: A Guide to Programming the LISP Machine"
  442.       Kluwer Academic (Boston), 1987. 337 pages.
  443.  
  444.    5. Sharam Hekmatpour.
  445.       "Introduction to LISP and Symbol Manipulation"
  446.       Prentice Hall (New York), 1988. 303 pages.
  447.  
  448.    6. Deborah G. Tatar
  449.       "A programmer's guide to Common Lisp"
  450.       Digital Press, 1987. 327 pages. ISBN 0-932376-87-8.
  451.            Good introduction on Common Lisp for programmers familiar
  452.            with other programming languages, such as FORTRAN, PASCAL, or C.
  453.  
  454.    7. Timothy Koschmann
  455.       "The Common Lisp Companion"
  456.       John Wiley & Sons, 1990. ISBN 0-471-503-8-8.
  457.            Targeted for those with some programming experience who wish to 
  458.            learn draft-ANSI Common Lisp, including CLOS and the CL condition 
  459.            system. Examples progress incrementally from simple numerical 
  460.            calculation all the way to a logic-programming extension to CL.
  461.   
  462. More advanced introductions to Lisp and its use in Artificial
  463. Intelligence include:
  464.  
  465.    1. Peter Norvig.
  466.       "Paradigms of AI Programming: Case Studies in Common Lisp"
  467.       Morgan Kaufmann, 1992. 946 pages. ISBN 1-55860-191-0. $49.95.
  468.  
  469.         Provides an in-depth exposition of advanced AI programming techniques
  470.         and includes large-scale detailed examples. The book is the most
  471.         advanced AI/Common-Lisp programming text and reference currently
  472.         available, and hence is not for the complete novice.  It focuses on the
  473.         programming techniques necessary for building large AI systems,
  474.         including object-oriented programming, and has a strong performance
  475.         orientation.
  476.  
  477.         The text is marked by its use of "non-toy" examples to illustrate the
  478.         techniques. All of the examples are written in Common Lisp, and copies
  479.         of the source code are available by anonymous ftp from
  480.         unix.sri.com:/pub/norvig and on disk in Macintosh or DOS format from
  481.         the publisher. Some of the techniques described include rule-based
  482.         pattern matching (GPS, Eliza, a subset of Macsyma, the Emycin expert
  483.         system shell), constraint propagation and backtracking (Waltz
  484.         line-labelling), alpha-beta search (Othello), natural language
  485.         processing (top-down, bottom-up and chart parsing), logic-programming
  486.         (unification and Prolog), interpreters and compilers for Scheme, and
  487.         object-oriented programming (CLOS).
  488.  
  489.         The examples are also used to illustrate good programming style and
  490.         efficiency. There is a guide to trouble-shooting and debugging Lisp
  491.         programs, a style guide, and a discussion of portability problems.
  492.         Some of the efficiency techniques described include memoization,
  493.         data indexing, compilation, delaying computation, proper use of
  494.         declarations, avoiding garbage collection, and choosing and using the
  495.         correct data structure.
  496.  
  497.         The book also serves as an advanced introduction to Common Lisp, with
  498.         sections on the Loop macro, CLOS and sequences, and some coverage of 
  499.         error handling, series, and the package facility.
  500.  
  501.    2. Eugene Charniak, Christopher K. Riesbeck, Drew V. McDermott
  502.       and James R. Meehan.
  503.       "Artificial Intelligence Programming", 2nd edition.
  504.       Lawrence Erlbaum Associates (Hillsdale, NJ), 1987. 533 pages.
  505.            Provides many nice code fragments, all of which are written
  506.            in Common Lisp. The first half of the book covers topics
  507.            like macros, the reader, data structures, control structures,
  508.            and defstructs. The second half of the book describes
  509.            programming techniques specific to AI, such as
  510.            discrimination nets, production systems, deductive database
  511.            retrieval, logic programming, and truth maintenance.
  512.  
  513.    3. Patrick H. Winston and Berthold K. P. Horn.
  514.       "LISP", 3rd edition.
  515.       Addison-Wesley (Reading, MA), 1989. 611 pages. ISBN 0-201-08319-1
  516.            Covers the basic concepts of the language, but also gives a lot
  517.            of detail about programming AI topics such as rule-based expert
  518.            systems, forward chaining, interpreting transition trees, 
  519.            compiling transition trees, object oriented programming,
  520.            and finding patterns in images. Not a tutorial. Has many
  521.            good examples. Source code for the examples is available by
  522.            anonymous ftp from ftp.ai.mit.edu:/pub/lisp3/. (The code runs in
  523.            Lucid, Allegro, KCL, GCLisp, MCL, Symbolics Genera. Send mail
  524.            with subject line "help" to ai3@ai.mit.edu for more information.)
  525.  
  526.    4. John R. Anderson, Albert T. Corbett, and Brian J. Reiser.
  527.       "Essential LISP"
  528.       Addison-Wesley (Reading, MA), 1987. 352 pages.
  529.            Concentrates on how to use Lisp with iteration and recursion.
  530.  
  531.    5. Robert D. Cameron and Anthony H. Dixon
  532.       "Symbolic Computing with Lisp"
  533.       Prentice-Hall, 1992, 326 pages. ISBN 0-13-877846-9.
  534.            The book is intended primarily as a third-year computer science
  535.            text. In terms of programming techniques, it emphasizes recursion
  536.            and induction, data abstraction, grammar-based definition of Lisp
  537.            data structures and functional programming style. It uses
  538.            two Lisp languages: 
  539.                 (1) a purely functional subset of Lisp called Small Lisp and
  540.                 (2) Common Lisp.
  541.            An MS-DOS interpreter for Small Lisp (including source) is
  542.            provided with the book.  It considers applications of Lisp
  543.            to formal symbolic data domains: algebraic expressions,
  544.            logical formulas, grammars and programming languages. 
  545.  
  546.    6. Hasemer and Domingue.
  547.       "Common Lisp Programming for Artificial Intelligence"
  548.       Addison-Wesley, 1989.
  549.  
  550.    7. Steven Tanimoto
  551.       "The Elements of Artificial Intelligence: An Introduction Using Lisp"
  552.       Computer Science Press, Rockville, MD, 1987, 530 pages.
  553.  
  554.    8. Patrick R. Harrison
  555.       "Common Lisp and Artificial Intelligence"
  556.       Prentice Hall, Englewood Clifs, NJ, 1990. 244 pages. ISBN 0-13-155243.
  557.  
  558.    9. Paul Graham
  559.       "On Lisp: Advanced Techniques for Common Lisp"
  560.       Prentice Hall, Englewood Clifs, NJ, 1994. ISBN 0-13-030552-9.
  561.          Emphasizes a bottom-up style of writing programs, which he
  562.          claims is natural in Lisp and has advantages over the
  563.          traditional way of writing programs in C and Pascal.
  564.          Also has in-depth sections on writing macros.
  565.  
  566. General Lisp reference books include:
  567.  
  568.    1. Guy L. Steele
  569.       "Common Lisp: The Language" [CLtL1]
  570.       Digital Press, 1984. 465 pages. ISBN 0-932376-41-X.
  571.  
  572.    2. Guy L. Steele
  573.       "Common Lisp: The Language, 2nd Edition" [CLtL2]
  574.       Digital Press, 1990. 1029 pages. ISBN 1-55558-041-6.
  575.  
  576.    3. Franz Inc. 
  577.       "Common Lisp: The Reference"
  578.       Addison-Wesley, Reading, MA 1988. ISBN 0-201-11458-5
  579.            Entries on Lisp (CLtL1) functions in alphabetical order.
  580.  
  581. Lisp periodicals include:
  582.         
  583.    1. LISP Pointers.
  584.       Published by ACM SIGPLAN six times a year. Volume 1, Number 1
  585.       was April-May 1987. 
  586.       Subscriptions: ACM Members $12; ACM Student Members $7; Non-ACM
  587.       members $25. Mail checks payable to the ACM to ACM Inc., PO Box
  588.       12115, Church Street Station, New York, NY 10249.
  589.  
  590.    2. LISP and Symbolic Computation, Kluwer Academic Press. Volume 1
  591.       was published in 1989. (jlz@lucid.com is the editor).  ISSN 0892-4635.
  592.       Subscriptions: Institutions $169; Individuals $80. Add $8 for
  593.       air mail. Kluwer Academic Publishers, PO Box 322, 3300 AH Dordrecht, 
  594.       The Netherlands, or Kluwer Academic Publishers, PO Box 358, Accord
  595.       Station, Hingham, MA 02018-0358. 
  596.  
  597.       A full table of contents of all published issues, aims and scope, and
  598.       instructions for authors are available by anonymous ftp from
  599.          ftp.std.com:/Kluwer/journals/
  600.       as the files lisp.toc and lisp.inf.
  601.  
  602.    3. Proceedings of the biannual ACM Lisp and Functional Programming
  603.       Conference. (First one was in 1980.)
  604.  
  605.    4. Proceedings of the annual Lisp Users and Vendors Conference.
  606.  
  607. Implementation-specific questions:
  608.  
  609.    1. Lucid. See the wizards.doc file that comes with the Lucid
  610.       release. It describes functions, macros, variables and constants that
  611.       are not official parts of the product and are not supported.
  612.       Constructs described in this file include: the interrupt facility, the
  613.       source file recording facility, the resource facility, multitasking,
  614.       writing your own streams, lisp pipes, i/o buffers, the compiler,
  615.       floating-point functions, memory management, debugger information, the
  616.       window tool kit, extensions to the editor, the foreign function
  617.       interface, clos information, delivery toolkit information, and Lucid
  618.       lisp training classes. The wizards.doc file also covers i/o
  619.       constructs, functions for dealing with DEFSTRUCT, functions and
  620.       constants for dealing with procedure objects, functions and constants
  621.       for dealing with code objects, function for mapping objects,
  622.       additional keyword argument to DISKSAVE, function used in the
  623.       implementation of arrays, function for monitor-specific behavior for a
  624.       process, additional keyword argument to RUN-PROGRAM, and load-time
  625.       evaluation.
  626.  
  627. Many books on Scheme are worth reading even if you use Common Lisp,
  628. because many of the issues are similar. Scheme is a simpler language
  629. to learn, so it is often used in introductory computer science
  630. classes.  See the Scheme FAQ for a list of introductions and
  631. references for Scheme. The two key introductions are Abelson and
  632. Sussman's "Structure and Interpretation of Computer Programs" and 
  633. Friedman and Felleisen's "The Little LISPer". 
  634.  
  635. Special Topics:
  636.  
  637.    Garbage Collection:
  638.  
  639.       Wilson, Paul R., "Uniprocessor Garbage Collection Techniques"
  640.       Proceedings of the 1992 International Workshop on Memory Management.
  641.       Springer Lecture Notes #637. Surveys garbage collection techniques. 
  642.       Includes an excellent bibliography. Available by anonymous ftp from
  643.          cs.utexas.edu:/pub/garbage/gcsurvey.ps.
  644.       The BibTeX format of the bibliography is also available in this
  645.       directory, along with several other papers. Contact wilson@cs.utexas.edu
  646.       for more info.
  647.  
  648. ----------------------------------------------------------------
  649. Subject: [1-3] How can I improve my Lisp programming style and 
  650.                coding efficiency?
  651.  
  652. There are several books about Lisp programming style, including:
  653.    
  654.    1. Molly M. Miller and Eric Benson
  655.       "Lisp Style and Design"
  656.       Digital Press, 1990. 214 pages. ISBN 1-55558-044-0.
  657.            How to write large Lisp programs and improve Lisp programming 
  658.            style. Uses the development of Lucid CL as an example. 
  659.  
  660.    2. Robin Jones, Clive Maynard, and Ian Stewart.
  661.       "The Art of Lisp Programming"
  662.       Springer-Verlag, 1989. 169 pages.
  663.  
  664.    3. W. Richard Stark.
  665.       "LISP, Lore, and Logic: an algebraic view of LISP
  666.        programming, foundations, and applications"
  667.       Springer-Verlag, 1990. 278 pages. ISBN 0-387-97072-X
  668.            Self-modifying code, self-reproducing programs, etc.
  669.  
  670.    4. CMU CL User's Manual, Chapter 7, (talks about writing
  671.       efficient code). It is available by anonymous ftp from any CMU CS 
  672.       machine (e.g., ftp.cs.cmu.edu [128.2.206.173]) as the file
  673.         /afs/cs.cmu.edu/project/clisp/docs/cmu-user/cmu-user.ps 
  674.       [when getting this file by anonymous ftp, one must cd to 
  675.       the directory in one atomic operation, as some of the superior
  676.       directories on the path are protected from access by anonymous ftp.]
  677.  
  678.    5. See also Norvig's book, SICP (Abelson & Sussman), SAP
  679.       (Springer and Friedman).
  680.  
  681.    6. Hallvard Tretteberg's Lisp Style Guide is available by anonymous
  682.       ftp in ftp.think.com:/public/think/lisp/style-guide.text. There is
  683.       a fair bit of overlap between Hallvard's style guide and the notes
  684.       below and in part 3 of this FAQ.
  685.  
  686.    7. Rajeev Sangal
  687.       "Programming Paradigms in Lisp"
  688.       McGraw-Hill, 1991. ISBN 0-07-054666-5.
  689.  
  690.    8. Rodney A. Brooks.
  691.       "Programming in Common Lisp"
  692.       John Wiley & Sons, New York, 1985. 303 pages. ISBN 0-471-81888-7.
  693.       Chapter 5 discusses Lisp programming style.
  694.  
  695. Here are some general suggestions/notes about improving Lisp
  696. programming style, readability, correctness and efficiency:
  697.  
  698.    General Programming Style Rules:
  699.  
  700.       - Write short functions, where each function provides a single,
  701.         well-defined operation. Small functions are easier to
  702.         read, write, test, debug, and understand.
  703.  
  704.       - Use descriptive variable and function names. If it isn't clear
  705.         from the name of a function or variable what its purpose is,
  706.         document it with a documentation string and a comment. In fact,
  707.         even if the purpose is evident from the name, it is still worth
  708.         documenting your code.
  709.  
  710.       - Don't write Pascal (or C) code in Lisp. Use the appropriate
  711.         predefined functions -- look in the index to CLtL2, or use the
  712.         APROPOS and DESCRIBE functions. Don't put a close parenthesis
  713.         on a line by itself -- this can really aggravate programmers
  714.         who grew up on Lisp. Lisp-oriented text editors include tools
  715.         for ensuring balanced parentheses and for moving across 
  716.         pairs of balanced parentheses. You don't need to stick
  717.         comments on close parentheses to mark which expression they close.
  718.  
  719.       - Use proper indentation -- you should be able to understand
  720.         the structure of your definitions without noticing the parentheses. 
  721.         In general, the way one indents a form is controlled by the
  722.         first symbol of the form. In DEFUNs, for example, one puts the
  723.         symbol DEFUN, the function name, and the argument list all on
  724.         the same line. If the argument list is too long, one can break
  725.         it at one of the lambda keywords. Following the argument list,
  726.         one inserts a carriage return and lists the expressions in the
  727.         body of the definition, with each form starting on its own
  728.         line indented three spaces relative to the open parenthesis of
  729.         the parent (in this case the DEFUN). This general style -- of
  730.         putting all the significant elements of a form on a single
  731.         line, followed by a carriage return and the indented body --
  732.         holds for many Lisp constructs. There are, of course, variations,
  733.         such as keeping the first clause on the same line as the COND
  734.         or CASE symbol, and the rules are relaxed in different ways to
  735.         keep line lengths to a manageable size. If you find yourself having
  736.         trouble fitting everything in even with line breaking and
  737.         relaxing the rules, either your function names are too long or your
  738.         code isn't very modular. You should perceive this as a signal that
  739.         you need to break up your big definitions into smaller chunks, each
  740.         with a clearly defined purpose, and possibly replace long function
  741.         names with concise but apt shorter ones.
  742.  
  743.       - Use whitespace appropriately. Use whitespace to separate
  744.         semantically distinct code segments, but don't use too much
  745.         whitespace. For example,
  746.            GOOD: 
  747.               (defun foo (x y)
  748.                 (let ((z (+ x y 10)))
  749.                   (* z z)))
  750.  
  751.            BAD: 
  752.               (defun foo(x y)(let((z(+ x y 10)))(* z z)))
  753.  
  754.               (defun foo ( x  y )
  755.                 (let ( ( z (+ x y 10) ) )
  756.                   ( * z z )
  757.                   )
  758.                 )    
  759.          Although the Lisp reader and compiler don't care which you
  760.          use, most experienced Lisp programs find the first example much easier
  761.          to read than the last two.
  762.  
  763.        - Don't use line lengths greater than 80 characters. People who
  764.          write code using Zmacs on Symbolics Lisp Machines are notoriously
  765.          guilty of violating this rule, because the CPT6 font allows
  766.          one to squeeze a tremendous amount of code on the display,
  767.          especially if one spreads the code out horizontally. This
  768.          makes it more difficult to read when printed out or read on
  769.          an 80x24 xterm window. In fact, use a line length of 72 characters
  770.          because it leaves a strip of white space at the edge of the window.
  771.  
  772.    The following functions often abused or misunderstood by novices. 
  773.    Think twice before using any of these functions.
  774.  
  775.       - EVAL. Novices almost always misuse EVAL. When experts use
  776.         EVAL, they often would be better off using APPLY, FUNCALL, or
  777.         SYMBOL-VALUE. Use of EVAL when defining a macro should set off
  778.         a warning bell -- macro definitions are already evaluated
  779.         during expansion. See also the answer to question 3-12.
  780.         The general rule of thumb about EVAL is: if you think you need
  781.         to use EVAL, you're probably wrong.
  782.  
  783.       - PROGV. PROGV binds dynamic variables and is often misused in
  784.         conjunction with EVAL, which uses the dynamic environment. 
  785.         In general, avoid unnecessary use of special variables.
  786.         PROGV is mainly for writing interpreters for languages embedded
  787.         in Lisp. If you want to bind a list of values to a list of
  788.         lexical variables, use
  789.             (MULTIPLE-VALUE-BIND (..) (VALUES-LIST ..) ..)
  790.         or
  791.             (MULTIPLE-VALUE-SETQ (..) (VALUES-LIST ..))
  792.         instead. Most decent compilers can optimize this expression. 
  793.         However, use of this idiom is not to be encouraged unless absolutely
  794.         necessary.
  795.  
  796.       - CATCH and THROW. Often a named BLOCK and RETURN-FROM are
  797.         more appropriate. Use UNWIND-PROTECT when necessary.
  798.  
  799.       - Destructive operations, such as NCONC, SORT, DELETE,
  800.         RPLACA, and RPLACD, should be used carefully and sparingly.
  801.         In general, trust the garbage collector: allocate new
  802.         data structures when you need them.
  803.  
  804.    To improve the readability of your code,
  805.  
  806.       - Don't use any C{A,D}R functions with more than two
  807.         letters between the C and the R. When nested, they become
  808.         hard to read. If you have complex data structures, you
  809.         are often better off describing them with a DEFSTRUCT,
  810.         even if the type is LIST. The data abstraction afforded by
  811.         DEFSTRUCT makes the code much more readable and its purpose
  812.         clearer. If you must use C{A,D}R, try to use
  813.         DESTRUCTURING-BIND instead, or at least SECOND, THIRD, 
  814.         NTH, NTHCDR, etc.
  815.  
  816.       - Use COND instead of IF and PROGN. In general, don't use PROGN if
  817.         there is a way to write the code within an implicit
  818.         PROGN. For example, 
  819.            (IF (FOO X)
  820.                (PROGN (PRINT "hi there") 23)
  821.                34)
  822.         should be written using COND instead.
  823.  
  824.       - Never use a 2-argument IF or a 3-argument IF with a second
  825.         argument of NIL unless you want to emphasize the return value;
  826.         use WHEN and UNLESS instead. You will want to emphasize the
  827.         return value when the IF clause is embedded within a SETQ,
  828.         such as (SETQ X (IF (EQ Y Z) 2 NIL)). If the second argument 
  829.         to IF is the same as the first, use OR instead: (OR P Q) rather
  830.         than (IF P P Q). Use UNLESS instead of (WHEN (NOT ..) ..)
  831.         but not instead of (WHEN (NULL ..) ..).
  832.  
  833.       - Use COND instead of nested IF statements. Be sure to check for
  834.         unreachable cases, and eliminate those cond-clauses.
  835.  
  836.       - Use backquote, rather than explicit calls to LIST, CONS, and
  837.         APPEND, whenever writing a form which produces a Lisp form, but
  838.         not as a general substitute for LIST, CONS and APPEND. LIST, 
  839.         CONS and APPEND usually allocate new storage, but lists produced
  840.         by backquote may involve destructive modification (e.g., ,.).
  841.  
  842.       - Make the names of special (global) variables begin and end
  843.         with an asterisk (*): (DEFVAR *GLOBAL-VARIABLE*)   
  844.         Some programmers will mark the beginning and end of an internal
  845.         global variable with a percent (%) or a period (.).
  846.         Make the names of constants begin and end with a plus (+):
  847.         (DEFCONSTANT +E+ 2.7182818)
  848.         This helps distinguish them from lexical variables. Some people
  849.         prefer to use macros to define constants, since this avoids
  850.         the problem of accidentally trying to bind a symbol declared
  851.         with defconstant.
  852.  
  853.       - If your program is built upon an underlying substrate which is
  854.         implementation-dependent, consider naming those functions and
  855.         macros in a way that visually identifies them, either by placing
  856.         them in their own package, or prepending a character like a %, ., 
  857.         or ! to the function name. Note that many programmers use the
  858.         $ as a macro character for slot access, so it should be avoided
  859.         unless you're using it for that purpose.
  860.  
  861.       - Don't use property lists. Instead, use an explicit hash table.
  862.         This helps avoid problems caused by the symbol being in the wrong
  863.         package, accidental reuse of property keys from other
  864.         programs, and allows you to customize the structure of the table. 
  865.  
  866.       - Use the most specific construct that does the job. This lets
  867.         readers of the code see what you intended when writing the code.
  868.         For example, don't use SETF if SETQ will do (e.g., for lexical
  869.         variables). Use the most specific predicate to test your conditions.
  870.         If you intend for a function to be a predicate, have it return T
  871.         for true, not just non-NIL. 
  872.  
  873.       - When NIL is used as an empty list, use () in your code. When NIL
  874.         is used as a boolean, use NIL. Similarly, use NULL to test for an
  875.         empty list, NOT to test a logical value. Use ENDP to test for the
  876.         end of a list, not NULL.
  877.  
  878.       - Don't use the &AUX lambda-list keyword. It is always clearer to
  879.         define local variables using LET or LET*.
  880.  
  881.       - When using RETURN and RETURN-FROM to exit from a block, don't
  882.         use (VALUES ..) when returning only one value, except if you
  883.         are using it to suppress extra multiple values from the first
  884.         argument. 
  885.  
  886.       - If you want a function to return no values (i.e., equivalent to
  887.         VOID in C), use (VALUES) to return zero values. This signals
  888.         to the reader that the function is used mainly for side-effects.
  889.  
  890.       - (VALUES (VALUES 1 2 3)) returns only the first value, 1.
  891.         You can use (VALUES (some-multiple-value-function ..)) to suppress
  892.         the extra multiple values from the function. Use MULTIPLE-VALUE-PROG1
  893.         instead of PROG1 when the multiple values are significant.
  894.  
  895.       - When using MULTIPLE-VALUE-BIND and DESTRUCTURING-BIND, don't rely
  896.         on the fact that NIL is used when values are missing. This is
  897.         an error in some implementations of DESTRUCTURING-BIND. Instead,
  898.         make sure that your function always returns the proper number of
  899.         values.
  900.  
  901.       - Type the name of external symbols, functions, and variables
  902.         from the COMMON-LISP package in uppercase. This will allow your
  903.         code to work properly in a case-sensitive version of Common Lisp,
  904.         since the print-names of symbols in the COMMON-LISP package
  905.         are uppercase internally. (However, not everybody feels that
  906.         being nice to case-sensitive Lisps is a requirement, so this
  907.         isn't an absolute style rule, just a suggestion.)
  908.  
  909.     Lisp Idioms:
  910.  
  911.       - MAPCAN is used with a function to return a variable number of
  912.         items to be included in an output list. When the function returns zero
  913.         or one items, the function serves as a filter. For example,
  914.            (mapcan #'(lambda (x) (when (and (numberp x) (evenp x)) (list x)))
  915.                    '(1 2 3 4 x 5 y 6 z 7))
  916.  
  917.     Documentation:
  918.  
  919.       - Comment your code. Use three semicolons in the left margin before
  920.         the definition for major explanations. Use two semicolons that
  921.         float with the code to explain the routine that follows. Two
  922.         semicolons may also be used to explain the following line when the
  923.         comment is too long for the single semicolon treatment. Use
  924.         a single semicolon to the right of the code to explain a particular
  925.         line with a short comment. The number of semicolons used roughly
  926.         corresponds with the length of the comment. Put at least one blank
  927.         line before and after top-level expressions.
  928.  
  929.       - Include documentation strings in your code. This lets users
  930.         get help while running your program without having to resort to
  931.         the source code or printed documentation. 
  932.  
  933.    Issues related to macros:
  934.  
  935.       - Never use a macro instead of a function for efficiency reasons.
  936.         Declaim the function as inline -- for example, 
  937.           (DECLAIM (INLINE ..))
  938.         This is *not* a magic bullet -- be forewarned that inline
  939.         expansions can often increase the code size dramatically. INLINE
  940.         should be used only for short functions where the tradeoff is
  941.         likely to be worthwhile: inner loops, types that the compiler
  942.         might do something smart with, and so on.
  943.  
  944.       - When defining a macro that provides an implicit PROGN, use the
  945.         &BODY lambda-list keyword instead of &REST.
  946.  
  947.       - Use gensyms for bindings within a macro, unless the macro lets
  948.         the user explicitly specify the variable. For example:
  949.             (defmacro foo ((iter-var list) body-form &body body)
  950.               (let ((result (gensym "RESULT")))
  951.                 `(let ((,result nil))
  952.                    (dolist (,iter-var ,list ,result)
  953.                      (setq ,result ,body-form)
  954.                      (when ,result
  955.                         ,@body)))))        
  956.         This avoids errors caused by collisions during macro expansion
  957.         between variable names used in the macro definition and in the
  958.         supplied body.
  959.  
  960.       - Use a DO- prefix in the name of a macro that does some kind of
  961.         iteration, WITH- when the macro establishes bindings, and
  962.         DEFINE- or DEF- when the macro creates some definitions. Don't
  963.         use the prefix MAP- in macro names, only in function names.
  964.  
  965.       - Don't create a new iteration macro when an existing function
  966.         or macro will do.
  967.  
  968.       - Don't define a macro where a function definition will work just
  969.         as well -- remember, you can FUNCALL or MAPCAR a function but 
  970.         not a macro.
  971.  
  972.       - The LOOP and SERIES macros generate efficient code. If you're
  973.         writing a new iteration macro, consider learning to use one
  974.         of them instead.
  975.   
  976.    File Modularization:
  977.  
  978.       - If your program involves macros that are used in more than one
  979.         file, it is generally a good idea to put such macros in a separate
  980.         file that gets loaded before the other files. The same things applies
  981.         to primitive functions. If a macro is complicated, the code that
  982.         defines the macro should be put into a file by itself. In general, if
  983.         a set of definitions form a cohesive and "independent" whole, they
  984.         should be put in a file by themselves, and maybe even in their own
  985.         package. It isn't unusual for a large Lisp program to have files named
  986.         "site-dependent-code", "primitives.lisp", and "macros.lisp". If a file
  987.         contains primarily macros, put "-macros" in the name of the file.
  988.  
  989.    Stylistic preferences:
  990.  
  991.       - Use (SETF (CAR ..) ..) and (SETF (CDR ..) ..) in preference to
  992.         RPLACA and RPLACD. Likewise (SETF (GET ..) ..) instead of PUT.
  993.  
  994.       - Use INCF, DECF, PUSH and POP instead instead of the corresponding
  995.         SETF forms.
  996.  
  997.       - Many programmers religiously avoid using CATCH, THROW, BLOCK,
  998.         PROG, GO and TAGBODY.  Tags and go-forms should only be necessary
  999.         to create extremely unusual and complicated iteration constructs. In
  1000.         almost every circumstance, a ready-made iteration construct or
  1001.         recursive implementation is more appropriate.
  1002.  
  1003.       - Don't use LET* where LET will do. Don't use LABELS where FLET
  1004.         will do. Don't use DO* where DO will do.
  1005.  
  1006.       - Don't use DO where DOTIMES or DOLIST will do.
  1007.  
  1008.       - If you like using MAPCAR instead of DO/DOLIST, use MAPC when
  1009.         no result is needed -- it's more efficient, since it doesn't
  1010.         cons up a list. If a single cumulative value is required, use
  1011.         REDUCE. If you are seeking a particular element, use FIND,
  1012.         POSITION, or MEMBER.
  1013.  
  1014.       - If using REMOVE and DELETE to filter a sequence, don't use the
  1015.         :test-not keyword or the REMOVE-IF-NOT or DELETE-IF-NOT functions.
  1016.         Use COMPLEMENT to complement the predicate and the REMOVE-IF
  1017.         or DELETE-IF functions instead.
  1018.  
  1019.       - Use complex numbers to represent points in a plane.
  1020.  
  1021.       - Don't use lists where vectors are more appropriate. Accessing the
  1022.         nth element of a vector is faster than finding the nth element
  1023.         of a list, since the latter requires pointer chasing while the
  1024.         former requires simple addition. Vectors also take up less space
  1025.         than lists. Use adjustable vectors with fill-pointers to
  1026.         implement a stack, instead of a list -- using a list continually
  1027.         conses and then throws away the conses.
  1028.  
  1029.       - When adding an entry to an association list, use ACONS, not
  1030.         two calls to CONS. This makes it clear that you're using an alist.
  1031.  
  1032.       - If your association list has more than about 10 entries in it,
  1033.         consider using a hash table. Hash tables are often more efficient.
  1034.         (See also [2-2].)
  1035.  
  1036.       - When you don't need the full power of CLOS, consider using
  1037.         structures instead. They are often faster, take up less space, and
  1038.         easier to use.
  1039.  
  1040.       - Use PRINT-UNREADABLE-OBJECT when writing a print-function.
  1041.  
  1042.       - Use WITH-OPEN-FILE instead of OPEN and CLOSE.
  1043.  
  1044.       - When a HANDLER-CASE clause is executed, the stack has already
  1045.         unwound, so dynamic bindings that existed when the error
  1046.         occured may no longer exist when the handler is run. Use
  1047.         HANDLER-BIND if you need this. 
  1048.  
  1049.       - When using CASE and TYPECASE forms, if you intend for the form
  1050.         to return NIL when all cases fail, include an explicit OTHERWISE
  1051.         clause. If it would be an error to return NIL when all cases
  1052.         fail, use ECASE, CCASE, ETYPECASE or CTYPECASE instead.
  1053.  
  1054.       - Use local variables in preference to global variables whenever
  1055.         possible. Do not use global variables in lieu of parameter passing.
  1056.         Global variables can be used in the following circumstances:
  1057.           *  When one function needs to affect the operation of
  1058.              another, but the second function isn't called by the first.
  1059.              (For example, *load-pathname* and *break-on-warnings*.)
  1060.           *  When a called function needs to affect the current or future
  1061.              operation of the caller, but it doesn't make sense to accomplish
  1062.              this by returning multiple values.
  1063.           *  To provide hooks into the mechanisms of the program.
  1064.              (For example, *evalhook*, *, /, and +.)
  1065.           *  Parameters which, when their value is changed, represent a
  1066.              major change to the program.
  1067.              (For example, *print-level* and *print-readably*.)
  1068.           *  For state that persists between invocations of the program.
  1069.              Also, for state which is used by more than one major program.
  1070.              (For example, *package*, *readtable*, *gensym-counter*.)
  1071.           *  To provide convenient information to the user.
  1072.              (For example, *version* and *features*.)
  1073.           *  To provide customizable defaults. 
  1074.              (For example, *default-pathname-defaults*.)
  1075.           *  When a value affects major portions of a program, and passing
  1076.              this value around would be extremely awkward. (The example
  1077.              here is output and input streams for a program. Even when
  1078.              the program passes the stream around as an argument, if you
  1079.              want to redirect all output from the program to a different
  1080.              stream, it is much easier to just rebind the global variable.)
  1081.  
  1082.       - Beginning students, especially ones accustomed to programming
  1083.         in C, Pascal, or Fortran, tend to use global variables to hold or pass
  1084.         information in their programs. This style is considered ugly by
  1085.         experienced Lisp programmers. Although assignment statements can't
  1086.         always be avoided in production code, good programmers take advantage
  1087.         of Lisp's functional programming style before resorting to SETF and
  1088.         SETQ. For example, they will nest function calls instead of using a
  1089.         temporary variable and use the stack to pass multiple values. When
  1090.         first learning to program in Lisp, try to avoid SETF/SETQ and their
  1091.         cousins as much as possible. And if a temporary variable is necessary,
  1092.         bind it to its first value in a LET statement, instead of letting it
  1093.         become a global variable by default. (If you see lots of compiler
  1094.         warnings about declaring variables to be special, you're probably
  1095.         making this mistake. If you intend a variable to be global, it should
  1096.         be defined with a DEFVAR or DEFPARAMETER statement, not left to the
  1097.         compiler to fix.)
  1098.  
  1099.    Correctness and efficiency issues:
  1100.  
  1101.       - In CLtL2, IN-PACKAGE does not evaluate its argument. Use defpackage
  1102.         to define a package and declare the external (exported)
  1103.         symbols from the package. 
  1104.  
  1105.       - The ARRAY-TOTAL-SIZE-LIMIT may be as small as 1024, and the
  1106.         CALL-ARGUMENTS-LIMIT may be as small as 50. 
  1107.  
  1108.       - Novices often mistakenly quote the conditions of a CASE form.
  1109.         For example, (case x ('a 3) ..) is incorrect. It would return
  1110.         3 if x were the symbol QUOTE. Use (case x (a 3) ..) instead.
  1111.  
  1112.       - Avoid using APPLY to flatten lists. Although 
  1113.            (apply #'append list-of-lists)
  1114.         may look like a call with only two arguments, it becomes a 
  1115.         function call to APPEND, with the LIST-OF-LISTS spread into actual
  1116.         arguments. As a result it will have as many arguments as there are
  1117.         elements in LIST-OF-LISTS, and hence may run into problems with the
  1118.         CALL-ARGUMENTS-LIMIT. Use REDUCE or MAPCAN instead:  
  1119.            (reduce #'append list-of-lists :from-end t)
  1120.            (mapcan #'copy-list list-of-lists)
  1121.         The second will often be more efficient (see note below about choosing
  1122.         the right algorithm). Beware of calls like (apply f (mapcar ..)).
  1123.  
  1124.       - NTH must cdr down the list to reach the elements you are
  1125.         interested in. If you don't need the structural flexibility of
  1126.         lists, try using vectors and the ELT function instead.
  1127.  
  1128.       - CASE statements can be vectorized if the keys are consecutive
  1129.         numbers. Such CASE statements can still have OTHERWISE clauses.
  1130.         To take advantage of this without losing readability, use #. with 
  1131.         symbolic constants:
  1132.  
  1133.             (eval-when (compile load eval)
  1134.                (defconstant RED 1)
  1135.                (defconstant GREEN 2)
  1136.                (defconstant BLUE 3))
  1137.  
  1138.             (case color
  1139.               (#.RED   ...)
  1140.               (#.GREEN ...)
  1141.               (#.BLUE  ...)
  1142.               ...)
  1143.  
  1144.       - Don't use quoted constants where you might later destructively
  1145.         modify them. For example, instead of writing '(c d) in
  1146.            (defun foo ()
  1147.              (let ((var '(c d)))
  1148.                ..))
  1149.         write (list 'c 'd) instead. Using a quote here can lead to
  1150.         unexpected results later. If you later destructively modify the 
  1151.         value of var, this is self-modifying code! Some Lisp compilers
  1152.         will complain about this, since they like to make constants
  1153.         read-only. Modifying constants has undefined results in ANSI CL.
  1154.         See also the answer to question [3-13].
  1155.  
  1156.         Similarly, beware of shared list structure arising from the use
  1157.         of backquote. Any sublist in a backquoted expression that doesn't
  1158.         contain any commas can share with the original source structure.
  1159.  
  1160.       - Don't proclaim unsafe optimizations, such as
  1161.            (proclaim '(optimize (safety 0) (speed 3) (space 1))) 
  1162.         since this yields a global effect. Instead, add the
  1163.         optimizations as local declarations to small pieces of
  1164.         well-tested, performance-critical code:
  1165.            (defun well-tested-function ()
  1166.               (declare (optimize (safety 0) (speed 3) (space 1)))
  1167.              ..)
  1168.         Such optimizations can remove run-time type-checking; type-checking
  1169.         is necessary unless you've very carefully checked your code
  1170.         and added all the appropriate type declarations.
  1171.  
  1172.       - Some programmers feel that you shouldn't add declarations to
  1173.         code until it is fully debugged, because incorrect
  1174.         declarations can be an annoying source of errors. They recommend
  1175.         using CHECK-TYPE liberally instead while you are developing the code.
  1176.         On the other hand, if you add declarations to tell the
  1177.         compiler what you think your code is doing, the compiler can
  1178.         then tell you when your assumptions are incorrect.
  1179.         Declarations also make it easier for another programmer to read
  1180.         your code. 
  1181.  
  1182.       - Declaring the type of variables to be FIXNUM does not
  1183.         necessarily mean that the results of arithmetic involving the 
  1184.         fixnums will be a fixnum; it could be a BIGNUM. For example,
  1185.            (declare (type fixnum x y))
  1186.            (setq z (+ (* x x) (* y y)))
  1187.         could result in z being a BIGNUM. If you know the limits of your
  1188.         numbers, use a declaration like
  1189.            (declare (type (integer 0 100) x y))
  1190.         instead, since most compilers can then do the appropriate type
  1191.         inference, leading to much faster code.
  1192.  
  1193.       - Don't change the compiler optimization with an OPTIMIZE
  1194.         proclamation or declaration until the code is fully debugged
  1195.         and profiled.  When first writing code you should say 
  1196.         (declare (optimize (safety 3))) regardless of the speed setting.
  1197.  
  1198.       - Depending on the optimization level of the compiler, type
  1199.         declarations are interpreted either as (1) a guarantee from
  1200.         you that the variable is always bound to values of that type,
  1201.         or (2) a desire that the compiler check that the variable is
  1202.         always bound to values of that type. Use CHECK-TYPE if (2) is
  1203.         your intention.
  1204.  
  1205.       - If you get warnings about unused variables, add IGNORE
  1206.         declarations if appropriate or fix the problem. Letting such
  1207.         warnings stand is a sloppy coding practice.
  1208.  
  1209.    To produce efficient code,
  1210.  
  1211.       - choose the right algorithm. For example, consider seven possible
  1212.         implementations of COPY-LIST:
  1213.  
  1214.            (defun copy-list (list)
  1215.              (let ((result nil))
  1216.                (dolist (item list result)
  1217.                  (setf result (append result (list item))))))
  1218.  
  1219.            (defun copy-list (list)
  1220.              (let ((result nil))
  1221.                (dolist (item list (nreverse result))
  1222.                  (push item result))))
  1223.  
  1224.            (defun copy-list (list)
  1225.              (mapcar #'identity list))
  1226.  
  1227.            (defun copy-list (list)
  1228.              (let ((result (make-list (length list))))
  1229.                (do ((original list (cdr original))
  1230.                     (new result (cdr new)))
  1231.                    ((null original) result)
  1232.                  (setf (car new) (car original)))))
  1233.  
  1234.            (defun copy-list (list)
  1235.              (when list
  1236.                (let* ((result (list (car list)))
  1237.                       (tail-ptr result))
  1238.                  (dolist (item (cdr list) result)
  1239.                    (setf (cdr tail-ptr) (list item))
  1240.                    (setf tail-ptr (cdr tail-ptr))))))
  1241.         
  1242.             (defun copy-list (list)
  1243.               (loop for item in list collect item))
  1244.  
  1245.             (defun copy-list (list)
  1246.               (if (consp list) 
  1247.                   (cons (car list)
  1248.                         (copy-list (cdr list)))
  1249.                   list))
  1250.  
  1251.         The first uses APPEND to tack the elements onto the end of the list.
  1252.         Since APPEND must traverse the entire partial list at each step, this
  1253.         yields a quadratic running time for the algorithm.  The second
  1254.         implementation improves on this by iterating down the list twice; once
  1255.         to build up the list in reverse order, and the second time to reverse
  1256.         it. The efficiency of the third depends on the Lisp implementation,
  1257.         but it is usually similar to the second, as is the fourth.  The fifth
  1258.         algorithm, however, iterates down the list only once. It avoids the
  1259.         extra work by keeping a pointer (reference) to the last cons of the 
  1260.         list and RPLACDing onto the end of that. Use of the fifth algorithm 
  1261.         may yield a speedup. Note that this contradicts the earlier dictum to
  1262.         avoid destructive functions. To make more efficient code one might
  1263.         selectively introduce destructive operations in critical sections of
  1264.         code. Nevertheless, the fifth implementation may be less efficient in
  1265.         Lisps with cdr-coding, since it is more expensive to RPLACD cdr-coded
  1266.         lists. Depending on the implementation of nreverse, however,
  1267.         the fifth and second implementations may be doing the same
  1268.         amount of work. The sixth example uses the Loop macro, which usually
  1269.         expands into code similar to the third. The seventh example copies
  1270.         dotted lists, and runs in linear time, but isn't tail-recursive. 
  1271.  
  1272.       - use type declarations liberally in time-critical code, but
  1273.         only if you are a seasoned Lisp programmer. Appropriate type
  1274.         declarations help the compiler generate more specific and
  1275.         optimized code. It also lets the reader know what assumptions
  1276.         were made. For example, if you only use fixnum arithmetic,
  1277.         adding declarations can lead to a significant speedup. If you
  1278.         are a novice Lisp programmer, you should use type declarations
  1279.         sparingly, as there may be no checking to see if the
  1280.         declarations are correct, and optimized code can be harder to
  1281.         debug. Wrong declarations can lead to errors in otherwise
  1282.         correct code, and can limit the reuse of code in other
  1283.         contexts. Depending on the Lisp compiler, it may also 
  1284.         be necessary to declare the type of results using THE, since
  1285.         some compilers don't deduce the result type from the inputs.
  1286.  
  1287.       - check the code produced by the compiler by using the
  1288.         disassemble function
  1289.  
  1290. ----------------------------------------------------------------
  1291. Subject: [1-4] Where can I learn about implementing Lisp interpreters 
  1292.                and compilers?
  1293.  
  1294. Books about Lisp implementation include:
  1295.  
  1296.    1. John Allen
  1297.       "Anatomy of Lisp"
  1298.       McGraw-Hill, 1978. 446 pages. ISBN 0-07-001115-X
  1299.            Discusses some of the fundamental issues involved in
  1300.            the implemention of Lisp.  
  1301.  
  1302.    2. Samuel Kamin
  1303.       "Programming Languages, An Interpreter-Based Approach"
  1304.       Addison-Wesley, Reading, Mass., 1990. ISBN 0-201-06824-9
  1305.            Includes sources to several interpreters for Lisp-like
  1306.            languages, and a pointer to sources via anonymous ftp.
  1307.  
  1308.    3. Sharam Hekmatpour
  1309.       "Lisp: A Portable Implementation"
  1310.       Prentice Hall, 1985. ISBN 0-13-537490-X.
  1311.            Describes a portable implementation of a small dynamic
  1312.            Lisp interpreter (including C source code). 
  1313.  
  1314.    4. Peter Henderson
  1315.       "Functional Programming: Application and Implementation"
  1316.       Prentice-Hall (Englewood Cliffs, NJ), 1980. 355 pages.
  1317.  
  1318.    5. Peter M. Kogge
  1319.       "The Architecture of Symbolic Computers"
  1320.       McGraw-Hill, 1991. ISBN 0-07-035596-7.
  1321.            Includes sections on memory management, the SECD and
  1322.            Warren Abstract Machines, and overviews of the various
  1323.            Lisp Machine architectures.
  1324.    
  1325.    6. Daniel P. Friedman, Mitchell Wand, and Christopher T. Haynes
  1326.       "Essentials of Programming Languages"
  1327.       MIT Press, 1992, 536 pages. ISBN 0-262-06145-7.
  1328.            Teaches fundamental concepts of programming language
  1329.            design by using small interpreters as examples. Covers
  1330.            most of the features of Scheme. Includes a discussion
  1331.            of parameter passing techniques, object oriented languages,
  1332.            and techniques for transforming interpreters to allow
  1333.            their implementation in terms of any low-level language.
  1334.            Also discusses scanners, parsers, and the derivation of
  1335.            a compiler and virtual machine from an interpreter.
  1336.            Source files available by anonymous ftp from 
  1337.               cs.indiana.edu:/pub/eopl/ [129.79.254.191].
  1338.  
  1339.    7. Peter Lee, editor, "Topics in Advanced Language Implementation",
  1340.       The MIT Press, Cambridge, Mass., 1991.
  1341.            Articles relevant to the implementation of functional
  1342.            programming languages.
  1343.  
  1344.    8. Also see the proceedings of the biannual ACM Lisp and Functional
  1345.       Programming conferences, the implementation notes for CMU Common Lisp,
  1346.       Norvig's book, and SICP (Abelson & Sussman).
  1347.  
  1348. ----------------------------------------------------------------
  1349. Subject: [1-5] What is the "minimal" set of primitives needed for a Lisp
  1350.                interpreter? 
  1351.  
  1352. Many Lisp functions can be defined in terms of other Lisp functions.
  1353. For example, CAAR can be defined in terms of CAR as
  1354.    (defun caar (list) (car (car list)))
  1355. It is then natural to ask whether there is a "minimal" or smallest set
  1356. of primitives necessary to implement the language. 
  1357.  
  1358. There is no single "best" minimal set of primitives; it all depends on
  1359. the implementation. For example, even something as basic as numbers
  1360. need not be primitive, and can be represented as lists. One possible
  1361. set of primitives might include CAR, CDR, and CONS for manipulation of
  1362. S-expressions, READ and PRINT for the input/output of S-expressions
  1363. and APPLY and EVAL for the guts of an interpreter.  But then you might
  1364. want to add LAMBDA for functions, EQ for equality, COND for
  1365. conditionals, SET for assignment, and DEFUN for definitions. QUOTE
  1366. might come in handy as well. If you add more specialized datatypes,
  1367. such as integers, floats, arrays, characters, and structures, you'll
  1368. need to add primitives to construct and access each.
  1369.  
  1370. AWKLisp is a Lisp interpreter written in Lisp, available by anonymous
  1371. ftp from ftp.cs.cmu.edu:/user/ai/lang/lisp/impl/awk/. It has thirteen
  1372. built-in functions: CAR, CDR, CONS, EQ, ATOM, SET, EVAL, ERROR, QUOTE,
  1373. COND, AND, OR, LIST. 
  1374.  
  1375. A more practical notion of a "minimal" set of primitives might be to
  1376. look at the implementation of Scheme. While many Scheme functions can
  1377. be derived from others, the language is much smaller than Common Lisp.
  1378. See Dybvig's PhD thesis, 
  1379.    R. Kent Dybvig, "Three Implementation Models for Scheme", Department
  1380.    of Computer Science Technical Report #87-011, University of North
  1381.    Carolina at Chapel Hill, Chapel Hill, North Carolina, April 1987.
  1382. for a justification of a particularly practical minimal set of
  1383. primitives for Scheme.
  1384.  
  1385. In a language like Common Lisp, however, there are a lot of low-level
  1386. primitive functions that cannot be written in terms of the others,
  1387. such as GET-UNIVERSAL-TIME, READ-CHAR, WRITE-CHAR, OPEN, and CLOSE,
  1388. for starters.  Moreover, real Common Lisp implementations are often
  1389. built upon primitives that aren't part of the language, per se, and
  1390. certainly not intended to be user-accessible, such as SYS:%POINTER-REF.
  1391.  
  1392. Beside the references listed in [1-4], some other relevant references
  1393. include:  
  1394.  
  1395.     McCarthy, John, "Recursive Functions of Symbolic Expressions and
  1396.     their Computation by Machine, Part I", CACM 3(4):185-195, April 1960.
  1397.        [Defines five elementary functions on s-expressions.]
  1398.  
  1399.     McCarthy, John, "A Micro-Manual for Lisp -- not the whole Truth",
  1400.     ACM SIGPLAN Notices, 13(8):215-216, August 1978.
  1401.        [Defines the Lisp programming language in 10 rules and gives
  1402.         a small interpreter (eval) written in this Lisp.]
  1403.  
  1404.     McCarthy, John, et al., "LISP 1.5 Programmer's Manual", 2nd edition,
  1405.     MIT Press, 1965, ISBN 0-262-13011-4 (paperback).  
  1406.        [Gives five basic functions, CAR, CDR, CONS, EQ, and ATOM.
  1407.         Using composition, conditional expressions (COND), and
  1408.         recursion, LAMBDA, and QUOTE, these basic functions may be used
  1409.         to construct the entire class of computable functions of
  1410.         S-expressions. Gives the functions EVAL and APPLY in
  1411.         M-expression syntax.] 
  1412.  
  1413.     Abelson and Sussman's SICP, especially chapters 4 and 5 on the
  1414.     implementation of meta-circular and explicit-control evaluators.
  1415.  
  1416.     Steele and Gabriel's "The Evolution of LISP".
  1417.  
  1418. ----------------------------------------------------------------
  1419. Subject: [1-6]  What does CLOS, PCL, X3J13, CAR, CDR, ... mean? 
  1420.  
  1421. Glossary of acronyms:
  1422.    CAR             Originally meant "Contents of Address portion of Register",
  1423.                    which is what CAR actually did on the IBM 704.
  1424.    CDR             Originally meant "Contents of Decrement portion of 
  1425.                    Register", which is what CDR actually did
  1426.                    on the IBM 704. Pronounced "Cudder" /kUdd@r/ (as in "a cow
  1427.                    chews its cdr"). The first syllable is pronounced
  1428.                    like "could". 
  1429.    LISP            Originally from "LISt Processing"
  1430.    GUI             Graphical User Interface
  1431.    CLOS            Common Lisp Object System. The object oriented
  1432.                    programming standard for Common Lisp. Based on
  1433.                    Symbolics FLAVORS and Xerox LOOPS, among others.
  1434.                    Pronounced either as "See-Loss" or "Closs". See also PCL.
  1435.    PCL             Portable Common Loops. A portable CLOS implementation.
  1436.                    Available by anonymous ftp from parcftp.xerox.com:pcl/.
  1437.    LOOPS           Lisp Object Oriented Programming System. A predecessor
  1438.                    to CLOS on Xerox Lisp machines.
  1439.    X3J13           Subcommittee of the ANSI committee X3 which is
  1440.                    working on the ANSI Standardization of Common Lisp.
  1441.    ANSI            American National Standards Institute
  1442.    dpANS           draft proposed American National Standard (what an ANS
  1443.                    is called while it's in the public review stage of
  1444.                    standardization).
  1445.    CL              Common Lisp
  1446.    SC22/WG16       The full name is ISO/IEC JTC 1/SC 22/WG 16. It stands
  1447.                    for International Organization for
  1448.                    Standardization/International Electronics(?)  
  1449.                    Congress(?) Joint Technical Committee 1, Subcommittee 22,
  1450.                    Working Group 16.  This long-winded name is the ISO
  1451.                    working group working on an international Lisp standard,
  1452.                    (i.e., the ISO analogue to X3J13).
  1453.    CLtL1           First edition of Guy Steele's book, 
  1454.                    "Common Lisp the Language". 
  1455.    CLtL2           Second edition of Guy Steele's book,
  1456.                    "Common Lisp the Language". 
  1457.  
  1458. ----------------------------------------------------------------
  1459. Subject: [1-7] Lisp Job Postings
  1460.  
  1461. The LISP-JOBS mailing list exists to help programmers find Lisp
  1462. programming positions, and to help companies with Lisp programming
  1463. positions find capable Lisp programmers. (Lisp here means Lisp-like
  1464. languages, including Scheme.)
  1465.  
  1466. Material appropriate for the list includes Lisp job announcements and
  1467. should be sent to lisp-jobs@anzus.com.  Administrative requests (e.g.,
  1468. to be added to the list) should be sent to lisp-jobs-request@anzus.com.
  1469.  
  1470. ----------------------------------------------------------------
  1471.  
  1472. ;;; *EOF*
  1473.  
  1474.